Measurement of lung function, electrocardiography, echocardiography and autonomic function